/*
 * Created by Yong.Kan @2012-11-17
 */
package com.jiandan.business.repository.selfservice;

import java.util.List;

import com.jiandan.base.persistence.mybatis.MyBatisRepository;
import com.jiandan.business.entity.selfservice.CemeteryInfoPlane;
import com.jiandan.business.entity.selfservice.CemeteryRegion;
import com.jiandan.business.entity.selfservice.Machine;
import com.jiandan.business.entity.selfservice.People;
import com.jiandan.business.entity.selfservice.QueryParam;

// TODO: Auto-generated Javadoc
/**
 * The Interface SelfServiceDao.
 */
@MyBatisRepository
public interface SelfServiceDao {

	/**
	 * Gets the all machines.
	 * 
	 * @return the all machines
	 */
	List<Machine> getAllMachines();

	/**
	 * Gets the machine.
	 * 
	 * @param id
	 *            the id
	 * @return the machine
	 */
	Machine getMachine(Integer id);

	/**
	 * Pinyin associate.
	 * 
	 * @param pinyin
	 *            the pinyin
	 * @return the list
	 */
	List<String> pinyinAssociate(String pinyin);

	/**
	 * 墓区列表（仅ID和NAME）.
	 * 
	 * @return the all region names
	 */
	List<CemeteryRegion> getAllRegionNames();

	/**
	 * 墓区详细信息.
	 * 
	 * @param regionId
	 *            墓区ID，为空返回所有墓区信息
	 * @return CemeteryInfoPlane
	 */
	List<CemeteryInfoPlane> getRegionInfo(Integer regionId);
	
	List<People> findPeoples(QueryParam param);
}
